import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'carwashStateToText',
})
export class CarwashStateToTextPipe implements PipeTransform {
  transform(value: number, ...args: unknown[]): string {
    const stateTexts = ['空闲中', '洗车中', '维护中'];

    return stateTexts[value];
  }
}
